﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="NopSolutions.NopCommerce.Web.Administration.Modules.AddressAddControl"
    CodeBehind="AddressAdd.ascx.cs" %>
<%@ Register TagPrefix="nopCommerce" TagName="SimpleTextBox" Src="SimpleTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="EmailTextBox" Src="EmailTextBox.ascx" %>
<%@ Register TagPrefix="nopCommerce" TagName="ToolTipLabel" Src="ToolTipLabelControl.ascx" %>
<div class="section-header">
    <div class="title">
        <img src="Common/ico-customers.png" alt="<%=GetLocaleResourceString("Admin.AddressAdd.Title")%>" />
        <%=GetLocaleResourceString("Admin.AddressAdd.Title")%>
        <asp:HyperLink runat="server" ID="lnkBack" ToolTip="<% $NopResources:Admin.AddressAdd.BackToCustomer %>"
            Text="<% $NopResources:Admin.AddressAdd.BackToCustomer %>" />
    </div>
    <div class="options">
        <asp:Button ID="SaveButton" runat="server" Text="<% $NopResources:Admin.AddressAdd.SaveAddress.Text %>"
            CssClass="adminButtonBlue" OnClick="SaveButton_Click" ToolTip="<% $NopResources:Admin.AddressAdd.SaveAddress.Tooltip %>" />
        <asp:Button ID="SaveAndStayButton" runat="server" CssClass="adminButtonBlue" Text="<% $NopResources:Admin.AddressAdd.SaveAndStayButton.Text %>"
            OnClick="SaveAndStayButton_Click" />
    </div>
</div>
<div>
<asp:Panel ID="pnlShippingAddress" runat="server">
    <table class="adminContent">
        <tr>
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblCustomerTitle" Text="<% $NopResources:Admin.AddressInfo.Customer %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Customer.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:Label ID="lblCustomer" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblFirstNameTitle" Text="<% $NopResources:Admin.AddressInfo.FirstName %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.FirstName.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox ID="txtFirstName" runat="server" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblPhoneNumberTitle" Text="<% $NopResources:Admin.AddressInfo.Phone %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Phone.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox ID="txtPhoneNumber" runat="server" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblCityTitle" Text="<% $NopResources:Admin.AddressInfo.City %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.City.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <nopCommerce:SimpleTextBox runat="server" ID="txtCity" ErrorMessage="<% $NopResources:Admin.AddressInfo.City.ErrorMessage %>"
                    CssClass="adminInput"></nopCommerce:SimpleTextBox>
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblAddress1Title" Text="<% $NopResources:Admin.AddressInfo.Address1 %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Address1.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <nopCommerce:SimpleTextBox runat="server" ID="txtAddress1" ErrorMessage="<% $NopResources:Admin.AddressInfo.ErrorMessage %>"
                    CssClass="adminInput"></nopCommerce:SimpleTextBox>
            </td>
        </tr>

        <!-------------------------------------------------------------------------------------->

        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblLastNameTitle" Text="<% $NopResources:Admin.AddressInfo.LastName %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.LastName.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox runat="server" ID="txtLastName"
                    CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>        
        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblEmailTitle" Text="<% $NopResources:Admin.AddressInfo.Email %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Email.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox runat="server" ID="txtEmail" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblFaxNumberTitle" Text="<% $NopResources:Admin.AddressInfo.Fax %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Fax.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox ID="txtFaxNumber" runat="server" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblCompanyTitle" Text="<% $NopResources:Admin.AddressInfo.Company %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Company.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox ID="txtCompany" runat="server" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>        
        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblAddress2Title" Text="<% $NopResources:Admin.AddressInfo.Address2 %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Address2.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox ID="txtAddress2" runat="server" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>        
        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblStateProvinceTitle" Text="<% $NopResources:Admin.AddressInfo.State %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.State.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:DropDownList ID="ddlStateProvince" AutoPostBack="False" runat="server" CssClass="adminInput">
                </asp:DropDownList>
            </td>
        </tr>
        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblZipPostalTitle" Text="<% $NopResources:Admin.AddressInfo.Zip %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Zip.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:TextBox runat="server" ID="txtZipPostalCode" 
                    CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr style="display:none">
            <td class="adminTitle">
                <nopCommerce:ToolTipLabel runat="server" ID="lblCountry" Text="<% $NopResources:Admin.AddressInfo.Country %>"
                    ToolTip="<% $NopResources:Admin.AddressInfo.Country.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
            </td>
            <td class="adminData">
                <asp:DropDownList ID="ddlCountry" AutoPostBack="True" runat="server" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged"
                    CssClass="adminInput">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
</asp:Panel>

<asp:Panel ID="pnlBillingAddress" runat="server">
    <table class="adminContent">
        <tr>
            <td colspan="2">
                <asp:TextBox runat="server" ID="txtCompany1" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td width="30%">
                Юридический адрес:
            </td>
            <td width="70%">
                <asp:TextBox runat="server" ID="txtAddress11" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Фактический адрес:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtAddress21" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                ИНН:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtINN" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                КПП:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtKPP" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                ОГРН:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtOGRN" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Название банка:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtBankName" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Город и адрес банка:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtBankAddress" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                БИК:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtBIK" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Корр. счет:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtKorrAcc" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Расчетный счет:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtRS" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Телефон:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtPhoneNumber1" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Факс:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFaxNumber1" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                E-mail:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmail1" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Контактное лицо:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFirstName1" CssClass="adminInput"></asp:TextBox>
            </td>
        </tr>
    </table>
</asp:Panel>

</div>
